package com.project.logistics.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.logistics.bean.UserDetail;
import com.project.logistics.mapper.UserDetailMapper;
import com.project.logistics.mapper.UserMapper;
import com.project.logistics.service.UserDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by94988 on 2021/3/30 15:16
 */
@Service
public class UserDetailServiceImpl extends ServiceImpl<UserDetailMapper, UserDetail> implements UserDetailService {

    @Autowired
    UserDetailMapper userDetailMapper;

    @Override
    public UserDetail getUserDetailById(String userId) {
        return userDetailMapper.getUserDetailById(userId);
    }

    @Override
    public void insertUserDetail(UserDetail userDetail) {
        userDetailMapper.insertUserDetail(userDetail);
    }

    @Override
    public void updateUserDetail(UserDetail userDetail) {
        userDetailMapper.updateUserDetail(userDetail);
    }
}
